package org.jeecg.modules.wangyue.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.wangyue.entity.ServiceItems;
import org.jeecg.modules.wangyue.entity.ServiceItemsJs;
import org.jeecg.modules.wangyue.mapper.ServiceItemsJsMapper;
import org.jeecg.modules.wangyue.model.ServiceTypeAndItemsModel;
import org.jeecg.modules.wangyue.service.IServiceItemsJsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 技师服务项目表
 * @Author: jeecg-boot
 * @Date:   2023-06-30
 * @Version: V1.0
 */
@Service
public class ServiceItemsJsServiceImpl extends ServiceImpl<ServiceItemsJsMapper, ServiceItemsJs> implements IServiceItemsJsService {

    @Autowired
    private ServiceItemsJsMapper serviceItemsJsMapper;

    @Override
    public IPage<ServiceItems> getServiceItemsPageByJs(Page page, String jsUserId, String jsUserType) {
        return serviceItemsJsMapper.queryServiceItemsPageByJs(page, jsUserId, jsUserType);
    }

    @Override
    public List<ServiceItems> getServiceItemsAllByJs(String jsUserId, String jsUserType) {
        return serviceItemsJsMapper.queryServiceItemsAllByJs(jsUserId, jsUserType);
    }

    @Override
    public List<ServiceTypeAndItemsModel> getJsServiceTypeToItemsAll(String jsUserId, String jsUserType) {
        return serviceItemsJsMapper.queryJsServiceTypeToItemsAll(jsUserId, jsUserType);
    }
}
